package cn.edu.xust.Vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author ufo
 * @Description 小主工单使用
 * @Date 2021/8/11 16:10
 * @Version 1.0
 */


@Data
@NoArgsConstructor
@AllArgsConstructor
public class RoomserviceVO  implements Comparable<RoomserviceVO> {


    private String floor;
    private String roomid;
    private String servicename;
    private String serviceid;
    private String ordernum;
    private String descript;
    private String status;
    private  String personName;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date starttime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date gettime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date endtime;


    @Override
    public int compareTo(RoomserviceVO o) {
        return o.getStarttime().compareTo(this.starttime);
    }
}
